package com.ruoyi.common.enums;

import lombok.Getter;

@Getter
public enum SmsOTypeEnum {

    REGISTER_LOGIn(0, "登陆"),
    ;

    private Integer value;
    private String label;

    SmsOTypeEnum(Integer value, String label){
        this.value = value;
        this.label = label;
    }

    public static String getLabelByValue(Integer value){
        for (SmsOTypeEnum statusEnum: values()){
            if (statusEnum.getValue().equals(value)){
                return statusEnum.getLabel();
            }
        }
        return null;
    }

}
